
package models.spider.policy;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * 
 * @author laurent@opprecht.info
 */
public class Url extends Policy {

    static final IPolicy INSTANCE = new Url();

    protected Url() {
        ;
    }

    @Override
    public boolean accept(final String url) {
        try {
            @SuppressWarnings("unused")
            URL u = new URL(url);
        } catch (MalformedURLException e) {
            return false;
        }
        return true;
    }

}
